package org.smr.dev.matedata;

/**
 * 
 * @author blade
 *
 */
public class FieldDef {

	private String type;
	
	private String name;
	
	private String methodSuffix;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String fieldName) {
		this.name = fieldName;
	}

	public FieldDef() {
		super();
	}

	public FieldDef(String type, String name, String methodSuffix) {
		super();
		this.type = type;
		this.name = name;
		this.methodSuffix = methodSuffix;
	}

	public String getMethodSuffix() {
		if(this.name == null)
			return null;
		return this.name.replace(this.name.charAt(0),((char)(this.name.charAt(0)-32)));		
	}

	public void setMethodSuffix(String methodSuffix) {
		this.methodSuffix = methodSuffix;
	}
	
	
	
}
